import request from '@/utils/request'

/**
 * 获取员工业绩统计
 */
export function getEmployeePerformance(employeeId, params) {
  return request({
    url: `/performance/employee/${employeeId}`,
    method: 'get',
    params
  })
}

/**
 * 获取员工总业绩
 */
export function getEmployeeTotalPerformance(employeeId) {
  return request({
    url: `/performance/employee/${employeeId}/total`,
    method: 'get'
  })
}

/**
 * 获取员工本月业绩
 */
export function getEmployeeMonthPerformance(employeeId) {
  return request({
    url: `/performance/employee/${employeeId}/month`,
    method: 'get'
  })
}

/**
 * 获取当前登录员工的业绩
 */
export function getMyPerformance(params) {
  return request({
    url: '/performance/my',
    method: 'get',
    params
  })
}





